﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Xylee.Common
{
    /// <summary>
    /// Command factories are built to create 
    /// certain types of commands, concrete implementations 
    /// can allow for the types to be created dynamically 
    /// with or without viewable items. 
    /// <seealso cref="IViewable"/> items can be used 
    /// interchangably with <seealso cref="ContextItem"/>'s.
    /// </summary>
    public interface ICommandFactory
    {
        ICommand CreateCommand();
        ICommand CreateCommandWithViewable(IViewable value);
        CommandType CreateCommand<CommandType>();
        CommandType CreateCommandWithViewable<CommandType>(IViewable value);
    }
}
